<?= $this->partial('pm/pmlayout.phtml', array(
									'flid' => $this->flid, 
									'flArray' => $this->flArray,
									'fromto' => $this->fromto
									)
	); 
?>
<?if($this->pageArray['pageNumber']>0):?>
	<form name="pmForm" id="userdisplay" method="post" action="administrator<?=CHOSING_DE?>pm<?=CHOSING_DE?>del?fromto=<?=$this->fromto?>">
	<div class="pmItemDiv">
		<?if($this->fromto=='to'):?>
			<?for($i=0;$i<count($this->pmArray);$i++):?>
			<div>
			<span class="itemDivSpan">
				<?if($this->pmArray[$i]['has_read']==0):?>
					<font color="red">未读</font> 
				<?endif;?>
				<label>发件人:<?=$this->pmArray[$i]['username']?></label>　
				<a onclick="return shouldDel();" href="administrator<?=CHOSING_DE?>pm<?=CHOSING_DE?>del?fromto=<?=$this->fromto?>&pmid=<?=$this->pmArray[$i]['pmid']?>">删除</a>　
				<a href="administrator<?=CHOSING_DE?>pm<?=CHOSING_DE?>more?pmid=<?=$this->pmArray[$i]['pmid']?>&fromto=<?=$this->fromto?>&flid=<?=$this->pmArray[$i]['flid']?>">查看</a>　
				<input type="checkbox" name="itemArray[]" value="<?=$this->pmArray[$i]['pmid']?>" />
			</span><?=$i+1?>.<?=$this->pmArray[$i]['subject']?>
			</div>
			<?endfor;?>
		<?else:?>
			<?for($i=0;$i<count($this->pmArray);$i++):?>
			<div>
				<span class="itemDivSpan">
					<label>收件人:<?=$this->pmArray[$i]['username']?></label>　
					<a onclick="return shouldDel();" href="administrator<?=CHOSING_DE?>pm<?=CHOSING_DE?>del?fromto=<?=$this->fromto?>&pmid=<?=$this->pmArray[$i]['pmid']?>">删除</a>　
					<a href="administrator<?=CHOSING_DE?>pm<?=CHOSING_DE?>more?pmid=<?=$this->pmArray[$i]['pmid']?>&fromto=<?=$this->fromto?>&flid=<?=$this->pmArray[$i]['flid']?>">查看</a>　
					<input type="checkbox" name="itemArray[]" value="<?=$this->pmArray[$i]['pmid']?>" />
				</span><?=$i+1?>.<?=$this->pmArray[$i]['subject']?></div>
			<?endfor;?>
		<?endif;?>
		<div><input onClick="selectAll(this,'pmForm','itemArray[]');" type="checkbox" /> 全选　<input onClick="reverseSelect();return false;" type="submit" value="反选" />　<input onClick="return checkShouldDelItems('pmForm','itemArray[]',1);" type="submit" value="删除"/>　</div>
	</form>
		<div class="pmPageDiv">共 <?=$this->pageArray['pageNumber']?> 页 <?=$this->pageString?></div>
		<div class="clearthis">.</div>
	</div>
<?else:?>
	<div style="padding:10px">
		<?=$this->getMsg('暂无短信!');?>
	</div>
<?endif;?>
</div>